/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package csse3004.GD;

import java.sql.Date;

/**
 *
 * @author Tom McNair - S41758984
 */
public class PollAdminAccount {
    private int ID;
    public String expiryDate;
    public long daysLeft;

    public long getDaysLeft() {
        return daysLeft;
    }

    public void setDaysLeft(long daysLeft) {
        this.daysLeft = daysLeft;
    }

    public boolean expiresSoon() {
        if (daysLeft <= 30) {
            return true;
        } else {
            return false;
        }
    }
    
    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }
    
    public String getExpiryDateString() {
        return expiryDate.toString();
    }

    public String getExpiryDate() {
        return expiryDate;
    }

    public void setExpiryDate(String creationDate) {
        this.expiryDate = creationDate;
    }
}
